﻿@page "/error-handler"

<button @onclick="OnError">出错了</button>

@code {
    Task OnError()
    {
        throw new InvalidOperationException();
    }
}
